import * as YvanUI from 'yvan-ui-wotu'

const layer = window['layer']

export function openDebug(scope: any) {
    layer.open({
        type: 2,
        title: '数据',
        shade: false,
        area: ['350px', '80%'],
        content: '/editor.html',
        success: function (layero, index) {
            // var body = layer.getChildFrame('body', index);
            var iframeWin: any = window[layero.find('iframe')[0]['name']];
            iframeWin.openScope(scope)
            // console.log(body.html()) //得到iframe页的body内容
            // body.find('input').val('Hi，我是从父页来的')
        }
    });
}
